<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<div class="box" style="text-align: left; height: auto;">
<div id="ss">
<table class="fixtext_label" style="width: 100%" border="0" align="center" cellspacing="2">
	<tbody style="width: 100%" >
	<?php
	$mc=0;
	foreach ($hongshaws as $hongshaw) {
		if($mc%2==0){?>
		<tr style="width: 100%">
			<td align="center">
				<table class="product_detail" style="width: 100%;height: 260px;">
					<tr>
						<td valign="top" style="width: 108px;">
							<p>
								<a href="<?= url::site("detail/find/$hongshaw->id") ?>"  title="ดูเพิ่มเติม..">
							       <?=$hongshaw->hongshaw_name?>
							    </a>
							</p>
							<a href="<?= url::site("detail/find/$hongshaw->id") ?>" >
								<img title="<?=$hongshaw->hongshaw_name?>"  alt="<?=$hongshaw->hongshaw_name?>" style="border: 2px solid #000;" src="<?php echo url::base(FALSE).''.$hongshaw->thumbnail?>"/>
							</a>
							<p style="font-size: 10pt;color:black;font-weight: bold;">ราคาเริ่มต้น &nbsp;[<font style="color: red;"><?=$hongshaw->hongshaw_min_price?></font>]&nbsp;&nbsp;บาท</p>
							<table width="100%">
								<tr>
									<td>
										<?php if($hongshaw->hongshaw_ubc==1)?>
										<img  width="20" height="20" alt="UBC" src="<?php echo url::base(FALSE).'images/option_logo/logo_ubc.gif'?>">&nbsp;&nbsp;
										<?php if($hongshaw->hongshaw_air==1)?>
										<img width="40" height="15" style="size: 50%" alt="แอร์" src="<?php echo url::base(FALSE).'images/option_logo/logo_air.gif'?>">&nbsp;&nbsp;
										<?php if($hongshaw->hongshaw_furniture==1)?>
										<img width="20" height="20" style="size: 50%" alt="เฟอร์นิเจอร์" src="<?php echo url::base(FALSE).'images/option_logo/logo_furniture.gif'?>">&nbsp;&nbsp;
										<!-- <img alt="เครื่องซักผ้า" src="images/option_logo/logo_water.gif'?>">&nbsp;&nbsp; -->
										<?php if($hongshaw->hongshaw_internet==1)?>
										<img width="20" height="20" style="size: 50%" alt="อินเตอร์เน็ต" src="<?php echo url::base(FALSE).'images/option_logo/logo_internet.gif'?>">&nbsp;&nbsp;
										<?php if($hongshaw->hongshaw_bts==1)?>
										<img width="20" height="20" style="size: 50%" alt="ใกล้ BTS" src="<?php echo url::base(FALSE).'images/option_logo/logo_bts.gif'?>">&nbsp;&nbsp;
										<?php if($hongshaw->hongshaw_mrt==1)?>
										<img width="20" height="20" style="size: 50%" alt="ใกล้ MRT" src="<?php echo url::base(FALSE).'images/option_logo/logo_mrt.gif'?>">
									</td>
								</tr>
							</table>
						</td>
						<td valign="top">
							<table width="100px">
								<tr>
									<td>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
			<?php }else{ ?>
			<td align="center">
				<table class="product_detail" style="width: 100%;height: 260px;">
					<tr>
						<td valign="top" style="width: 108px;">
							<p>
								<a href="<?= url::site("detail/find/$hongshaw->id") ?>"  title="ดูเพิ่มเติม..">
							       <?=$hongshaw->hongshaw_name?>
							    </a>
							</p>
							<a href="<?= url::site("detail/find/$hongshaw->id") ?>" >
								<img title="<?=$hongshaw->hongshaw_name?>"  alt="<?=$hongshaw->hongshaw_name?>" style="border: 2px solid #000;" src="<?php echo url::base(FALSE).''.$hongshaw->thumbnail?>"/>
							</a>
							<p style="font-size: 10pt;color:black;font-weight: bold;">ราคาเริ่มต้น &nbsp;[<font style="color: red;"><?=$hongshaw->hongshaw_min_price?></font>]&nbsp;&nbsp;บาท</p>
							<table width="100%">
								<tr>
									<td>
										<?php if($hongshaw->hongshaw_ubc==1)?>
										<img  width="20" height="20" alt="UBC" src="<?php echo url::base(FALSE).'images/option_logo/logo_ubc.gif'?>">&nbsp;&nbsp;
										<?php if($hongshaw->hongshaw_air==1)?>
										<img width="40" height="15" style="size: 50%" alt="แอร์" src="<?php echo url::base(FALSE).'images/option_logo/logo_air.gif'?>">&nbsp;&nbsp;
										<?php if($hongshaw->hongshaw_furniture==1)?>
										<img width="20" height="20" style="size: 50%" alt="เฟอร์นิเจอร์" src="<?php echo url::base(FALSE).'images/option_logo/logo_furniture.gif'?>">&nbsp;&nbsp;
										<!-- <img alt="เครื่องซักผ้า" src="images/option_logo/logo_water.gif'?>">&nbsp;&nbsp; -->
										<?php if($hongshaw->hongshaw_internet==1)?>
										<img width="20" height="20" style="size: 50%" alt="อินเตอร์เน็ต" src="<?php echo url::base(FALSE).'images/option_logo/logo_internet.gif'?>">&nbsp;&nbsp;
										<?php if($hongshaw->hongshaw_bts==1)?>
										<img width="20" height="20" style="size: 50%" alt="ใกล้ BTS" src="<?php echo url::base(FALSE).'images/option_logo/logo_bts.gif'?>">&nbsp;&nbsp;
										<?php if($hongshaw->hongshaw_mrt==1)?>
										<img width="20" height="20" style="size: 50%" alt="ใกล้ MRT" src="<?php echo url::base(FALSE).'images/option_logo/logo_mrt.gif'?>">
									</td>
								</tr>
							</table>
						</td>
						<td valign="top">
							<table width="100px">
								<tr>
									<td>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</td>
		<tr>
		<?php }
		$mc++;
	}?>
	
	</tbody>
</table>
</div>
<br><br><br><br><br><br>
<table style="width: 100%">
	<tr style="width: 100%">
		<td style="width: 50px">Page :: &nbsp;</td>
		<td align="left"><?=$pagination->render()?></td>
	</tr>
</table>
<?php //echo "count : ".$hongshaw_count ?>
</div>
